package design.graduation.novelwebsite.task;

import design.graduation.novelwebsite.service.IncludeBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @author: 洪少尉
 * @Date: 2020/5/3 23:37
 * @Description:
 */
public class ScheduledTasks {
	@Autowired
	private IncludeBookService includeBookService;

	/**
	 * 定时初始化月点击数
	 */
	@Scheduled(cron = "0 0 0 1 * ? *")
	public  void clear(){
		includeBookService.clearMonthlyClick();
	}
}
